﻿using System;
using System.Web.UI;

namespace MyWeb.Admin.Usercontrols
{
    public partial class ucHeader : UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["admin"] == null)
            {
                Response.Redirect("~/Admin/Login.aspx");
            }
            else
            {
                lblFullName.Text = Session["admin"].ToString();
            }
        }

        protected void BtnLogoutClick(object sender, EventArgs e)
        {
            Session.Clear();
            Response.Redirect("~/Admin/Login.aspx");
        }
    }
}